package cn.fresh.xuanyuan.module.infra.api.column;


import cn.fresh.xuanyuan.framework.common.pojo.CommonResult;
import cn.fresh.xuanyuan.module.infra.enums.ApiConstants;
import cn.fresh.xuanyuan.module.product.api.spu.dto.ProductSpuRespDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 基础设施服务")
public interface ColumnProductApi {

    String PREFIX = ApiConstants.PREFIX + "/column";

    @PostMapping(value = PREFIX + "/updateColumnProductInfo")
    @Schema(description = "更新商品在栏目内的信息")
    CommonResult<String> updateColumnProductInfo(@RequestBody ProductSpuRespDTO productSpuResp);
}
